package com.zhang.mapper;

import com.zhang.domain.Pet;
import com.zhang.domain.PetAcq;
import com.zhang.domain.PetType;
import com.zhang.domain.SearchMsg;
import com.zhang.query.PetQuery;

import java.util.List;

/**
 * @author zh
 * @create 2022-02-21 11:52
 */
public interface PetMapper {
    //基础查询
    void save(Pet d);

    void update(Pet d);

    void delete(Long id);

    List<Pet> queryData(PetQuery query);

    List<PetType> selAllPetType();

    void saveMsg(SearchMsg searchMsg);

    void updateMsg(SearchMsg searchMsg);

    void deleteMsg(Long id);

    Pet loadById(Long id);

    void updateState(long id);

    void addOrder(PetAcq petAcq);
}
